package Task6_2;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;

public class CopyMP4 {
    public static void main(String[] args) throws Exception {
        FileInputStream t1= new FileInputStream("D:\\1.mp4");
        FileOutputStream t2=new FileOutputStream("1.mp4");
        byte[] bytes=new byte[1024];
        int len=0;
        while ((len=t1.read(bytes))!=-1){
            t2.write(bytes,0,len);
        }
        t2.close();
        t1.close();
     }
}
